package com.ruibang.glass.quality.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruibang.glass.quality.domain.req.LabelReq;
import com.ruibang.glass.quality.domain.resp.LatestBindTime;
import com.ruibang.glass.quality.entity.Label;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 宋锦康
 */
public interface LabelMapper extends CommonMapper<Label> {
    List<LatestBindTime> getLatestBindTime();

    String getBatchNumber(@Param("palletNumber") String palletNumber);

    IPage<Label> queryLabel(IPage<Label> page, @Param("labelReq") LabelReq labelReq);

    List<String> likePalletNumber(@Param("highlight") String highlight);
}
